package com.x25175.file.util;

import java.util.HashSet;
import java.util.List;

/**
 * @author 徐佳辉
 * @date 2020/11/23 14:49
 * list去除重复
 */
public class ListUtil {

    public static List removeDuplicate(List list) {
        HashSet h = new HashSet(list);
        list.clear();
        list.addAll(h);
        return list;
    }
}
